import request from '@/utils/request'

// 查询假期规则列表
export function vacationBalanceList(query) {
  return request({
    url: '/vacation/balance/list',
    method: 'get',
    params: query
  })
}

// 查询所有的假期规则名称和id
export function getListVacationNameApi(query) {
  return request({
    url: '/vacation/balance/listVacationName',
    method: 'get',
    params: query
  })
}

// 更改用户假期余额
export function updataValanceApi(data) {
  return request({
    url: '/vacation/balance/changeUserBalance',
    method: 'post',
    data: data
  })
}